package xyz.yohao.flow.bean.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import xyz.yohao.flow.common.constants.EntityConstants;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("wf_instance_form")
public class WorkflowInstanceForm implements Serializable {

    private static final Long serialVersionUID = 1L;

    /*
     * 主键id
     */
    @TableId
    public Long id;


    /**
     * 实例id
     */
    public Long instanceId;

    /**
     * 表单id
     */
    public Long formId;

    /**
     * 表单内容
     */
    public String formContent;

    /**
     * 表单数据
     */
    public String formData;

    /**
     * 表单参数
     */
    public  String OptionParams;


    /**
     * 是否删除
     */
    public Integer isDeleted;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = EntityConstants.ENTITY_TIME_FORMAT)
    public Date createTime;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = EntityConstants.ENTITY_TIME_FORMAT)
    public Date updateTime;

}
